import Login from '../views/login';
import Registry from '../views/registry';
import Main from '../views/main';
import Home from '../views/main/home';
import Classify from '../views/main/classify';
import Car from '../views/main/car';
import My from '../views/main/my';
import Detail from '../views/detail';
import Search from '../views/search';

export default [
    {
        path:'/login',
        component:Login
    },
    {
        path:'/registry',
        component:Registry
    },
    {
        path:'/main',
        component:Main,
        children:[
            {
                path:'/main/home',
                component:Home
            },
            {
                path:'/main/classify',
                component:Classify
            },
            {
                path:'/main/car',
                component:Car
            },
            {
                path:'/main/my',
                component:My
            },
            {
                from:'/main',
                to:'/main/home'
            }
        ]
    },
    {
        path:'/detail/:id',
        component:Detail
    },
    {
        path:'/search',
        component:Search
    },
    {
        from:'/',
        to:'/main'
    }
]